import {
	httpGet,
	httpPost
} from "@/js_sdk/uni-admin/request"
var dpc = '/dpc';
var admin = dpc + '/admin';
export async function vsCode(data) {
	return await httpGet(dpc + "/vsCode", data);
}
export async function getinfo(data) {
	return await httpGet(dpc + "/users/getinfo", data);
}

export async function login(data) {
	return httpPost(admin + "/login", data);
}
export async function loginInfo(data) {
	return await httpGet(admin + "/loginInfo", data);
}

export async function userMenu(data) {
	return await httpGet(admin + "/userMenu", data);
}
// --- --- --- -- --- --- ----
export async function getUserList(data) {
	return await httpPost(admin + "/getUserList", data);
}
// 修改用户余额（只能添加）
export async function addUserBalance(data) {
	return await httpPost(admin + "/addUserBalance", data);
}
// 修改用户余额
export async function updateUserBalance(data) {
	return await httpPost(admin + "/updateUserBalance", data);
}
// 用户禁用
export async function updateUserState(data) {
	return await httpPost(admin + "/updateUserState", data);
}
// 角色列表
export async function getRolesList(data) {
	return await httpPost(admin + "/getRolesList", data);
}
// 修改角色
export async function updateRoles(data) {
	return await httpPost(admin + "/updateRoles", data);
}
// 添加角色
export async function addRoles(data) {
	return await httpPost(admin + "/addRoles", data);
}


// 接口权限列表
export async function getPowerList(data) {
	return await httpPost(admin + "/getPowerList", data);
}
// 路由权限列表
export async function getPermitList(data) {
	return await httpPost(admin + "/getPermitList", data);
}


